
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:fluttertoast/fluttertoast.dart';

class ToastUtils {
  static showToast(String msg, {bool isLong = false}) {
    Fluttertoast.showToast(
        msg: msg,
        toastLength: isLong ? Toast.LENGTH_LONG : Toast.LENGTH_SHORT,
        gravity: ToastGravity.CENTER,
        timeInSecForIosWeb: 1,
        backgroundColor: const Color(0xCC333333),
        textColor: Colors.white,
        fontSize: 30.sp);
  }
}
